// src/types/user.ts
import { UserRole } from "./role";
export interface User {
    id: string;
    username: string;
    password: string;
    email: string;
    avatar?: string;
    role: UserRole; // 明确可以是对象或字符串
    permissions: string[];
    createdAt: string;
    updatedAt: string;
    lastLogin?: string;
    name?: string;
    phone?: string;
    address?: string;
    city?: string;
    code?: string;
    about?: string;
    isActive?: boolean;
}
